<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>waterfalls flow layout</title>
    <link rel="stylesheet" href="./style.css">
</head>

<body>
    <div id="wrap" class="wrap"></div>
    <script src="../common/create-wrap.js"></script>
    <script src="../common/create-flow.js"></script>
    <script>
        const wrap = document.querySelector("#wrap");
        window.onload = function () {
            createWrap(wrap).then(() => createFlow(wrap))
            window.addEventListener("resize", () => createFlow(wrap))
        }
    </script>
</body>

</html>